<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title>Yogette's Blog</title>
        <link href="<?php echo base_url(); ?>/yogette/css/yogette.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="blog_entry" class="body-user" >
        <div class="main-wrapper-blog" style=" height:auto; position:absolute ; " >
            <img class="pinkcircle" src="<?php echo base_url(); ?>yogette/images/pinkCircle.jpg"/>
            <div class="Container"></div>
            <div class="menulist">
                <ul class="menulist-ul">
                    <li><img class="ice-cream" src="<?php echo base_url(); ?>yogette/images/logoIcon.jpg"/><a href="../yogette"><img src="<?php echo base_url(); ?>yogette/images/home.jpg" class="home" alt="Yogette's Homepage"/></a></li>
                </ul>
            </div>
            
            <div class="blog-div">
                <table border="0" width="750" dir="ltr" cellpadding="10"> 
                    <th class="blog-div-th">Blog</th>
                   
                        
                   <?php foreach ($query as $row) { ?>
                    <tr class="blog-div-tr" >
                        <td >
                                <h2 class="blog-div-h2"><b>Title:</b><?php echo $row->post_title; ?></h2>
                                <span class="metadata"><b>Author:</b><?php echo $row->author_name; ?></span><br/>
                                <span class="metadata"><b>Created on:</b><?php echo $row->date_posted; ?></span><br/>
                                <span class="metadata"><b>category:</b><?php echo $row->category_name; ?></span>
                                <p class="blog-div-p"><?php echo $row->post_summary; ?>
                                <a class="blog-div-a" href="/yogette/blog/get_post/<?php echo $row->post_id; ?>">Continue Reading ...</a>
                               
                                </p><div class="blog-nav-div">
                                    <a class="metadata-blog-div-a" href="/yogette/blog/edit_post/<?php echo $row->post_id; ?>">Edit Post</a> |-|
                                    <a class="metadata-blog-div-a" href="/yogette/blog/delete_post/<?php echo($row->post_id); ?>">Delete Post</a>
                                </div><!-- end nav -->
                                <hr/>
                             </td>
                        </tr>
                            <?php } ?>
                </table>
            </div>
            
            <div style=" margin-left: 70.5%;">
                <a class="metadata-blog-div-a" href="/yogette/blog/new_post/">Add New Post</a> 
                 <?php if(!$this->session->userdata('c_logged_in')) {?>
                |-| <a class="metadata-blog-div-a" href="/yogette/user/login/">Login-In</a> 
                <?php } ?>
                <?php if($this->session->userdata('c_logged_in')) {?>
                |-| <a class="metadata-blog-div-a" href="/yogette/blog/logout/">Login-Out</a>
                  <?php } ?>
            </div>
            
            <div class="Categories-div" style=" margin-left: 70.5%;">
                <table border="0" width="270" cellpadding="10">
                    <th class="Categories-div-th">Categories</th>
                    <tr>
                        <td><a class="blog-div-a" href="../yogette/blog" >Announcements</a></td>
                    </tr>        
                    <tr>
                        <td><a class="blog-div-a" href="../yogette/blog" >Events</a></td>
                    </tr>    
                    <tr>
                        <td><a class="blog-div-a" href="../yogette/blog" >Releases</a></td>
                    </tr>
                </table>
            </div>
            <div class="Archive-div" style="margin-left: 70.5%;">
                <table border="0" width="270" cellpadding="10">
                     <th class="Archive-div-th">Archive</th>
                     <tr>
                         <td><a class="blog-div-a" href="../yogette/blog" >November' 2011 (4)</a></td>
                    </tr>
                </table>
            </div>
        </div>
       
        <!-- footer start-->
        <div class="pre-footer">   
        </div>
        <div class="footer">
            <div>
                <p class="footer-p1">yogurt is healthy</p>
            </div>
            <div>
                <p class="footer-p2">Copyright &COPY; 2010 YOGETTE.</p>
            </div>
        </div>
        <img class="post-footer" src="<?php echo base_url(); ?>yogette/blank.jpg" id="blank" name="blank" /> 
        <!-- footer ends-->
    </body>
</html>  